package com.heima.article.config;

import com.baomidou.mybatisplus.extension.plugins.PaginationInterceptor;
import org.mybatis.spring.annotation.MapperScan;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

/**
 * @Author 请不要叫我高司令
 * @Date 2022/4/9 20:30
 * @Version 1.0
 */

@Configuration
@MapperScan("com.heima.article.mapper")
public class MybatisConfig {

    @Bean
    public PaginationInterceptor paginationInterceptor() {

        PaginationInterceptor interceptor = new PaginationInterceptor();
        return interceptor;
    }

}
